﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Samples.Entities
{

	[Serializable]
	public abstract class Entity
	{
		public virtual Guid Id
		{
			get;
			protected set;
		}
	}
	public class Asset : Entity
	{
		public virtual string AccountName
		{
			get;
			set;
		}
		public virtual decimal? AccountBalance
		{
			get;
			set;
		}
	}
	public class Borrower : Entity
	{
		public virtual string FirstName
		{
			get;
			set;
		}
		public virtual string LastName
		{
			get;
			set;
		}
		public virtual IList<Asset> Assets
		{
			get;
			set;
		}
		public Borrower()
		{
			Assets = new List<Asset>();
			Id = Guid.NewGuid(  );
		}
	}

}
